﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RPGConsole
{
    class MainConsole
    {
        public static void Init()
        {
            Console.SetCursorPosition(0, 30);
            ConsoleExtend.Write('-', 120);
            Console.SetCursorPosition(100, 29);
            ConsoleExtend.Write('-', 20);
            for (int j = 0; j < 30; j++)
            {
                Console.SetCursorPosition(100, j);
                Console.Write("|");
            }
        }

        public static void ClearForm1(int interval = 0)
        {
            for (int j = 0; j < 30; j++)
            {
                Console.SetCursorPosition(0, j);
                ConsoleExtend.Write(' ', 99);
                if (interval > 0)
                    System.Threading.Thread.Sleep(interval);
            }
        }

        public static void ClearForm2(int interval = 0)
        {
            for (int j = 0; j < 30; j++)
            {
                Console.SetCursorPosition(101, j);
                ConsoleExtend.Write(' ', 19);
                if (interval > 0)
                    System.Threading.Thread.Sleep(interval);
            }
        }
        public static void ClearForm3(int interval = 0)
        {
            for (int j = 31; j <= 40; j++)
            {
                Console.SetCursorPosition(0, j);
                ConsoleExtend.Write(' ', 120);
                if (interval > 0)
                    System.Threading.Thread.Sleep(interval);
            }
        }

    }
}
